// ActionScript file
import mx.collections.ArrayCollection;


public static const low:String = "Low";
public static const moderate:String = "Moderate";
public static const high:String = "High";

public static const intensityLevel:ArrayCollection =  new ArrayCollection(
			[ {label:low, data:"L"},
			  {label:moderate,data:"M"},
			  {label:high,data:"H"}]);

public static const morning:String = "Morning";
public static const midday:String = "Midday";
public static const evening:String = "Evening";
public static const anytime:String = "Anytime";

//constant values to represent the amount of calories burnt based on an abritrary level of activity						
public static const LIGHT_ACTIVITY:Number = .000232;
public static const MODERATE_ACTIVITY:Number = .000327;
public static const HARD_ACTIVITY:Number = .0008077;

public static const MAX_DAILY_PTS:Number = 54;
public static const WEEKLY_POINTS:Number = 35;
			  
public static const levelOfActivity:ArrayCollection =  new ArrayCollection(
			[ {label:sitting, data:0},
			  {label:standing, data:2},
			  {label:walking, data:4},
			  {label:working, data:6}]);
			  
public static const sitting:String = "Sitting"; //0
public static const standing:String = "Some Sitting, Mostly Standing";//2pts
public static const walking:String = "Walking most of the time";// 4pts
public static const working:String = "Doing physically hard work most of the time";// 6pts

public static const levelOfNursing:ArrayCollection =  new ArrayCollection(
			[ {label:"", data:0},
			  {label:nursing, data:10},
			  {label:supplementing, data:5}]);
			


public static const nursing:String = "Solely Nursing"// 10 pts
public static const supplementing:String = "Supplementing with solid food or formula"//5pts			  
			  
			  
public static const timeOfDay:ArrayCollection =  new ArrayCollection(
			[ {label:morning, data:"0"},
			  {label:midday, data:"1"},
			  {label:evening, data:"2"},
			  {label:anytime, data:"3"}]);
			  
		
public static const servingTypes:ArrayCollection = new ArrayCollection(
				[
					{label:"Servings", data:"0"}
				]
			);
			
public static const genderTypes:ArrayCollection = new ArrayCollection(
				[
					{label:male, data:8},
					{label:female, data:2}
				]
			);

public static const oneWeek:String = "One Week";
public static const twoWeek:String = "Two Weeks";
public static const threeWeek:String = "Three Weeks";
public static const fourWeek:String = "Four Weeks";
public static const oneMonth:String = "One Month";
public static const twoMonth:String = "Two Months";
public static const threeMonth:String = "Three Months";
public static const fourMonth:String = "Four Months";
public static const fiveMonth:String = "Five Months";
public static const sixMonth:String = "Six Months";

public static const NUM_OF_MONTHS:Number = 12;

public static const oneDay:Number = 1000 * 60 * 60 * 24;//number of milliseconds in a day
			
public static const lengthOfTimeToGoalWeight:ArrayCollection =  new ArrayCollection(
			[ {label:"", data:0},
			  {label:oneWeek, data:oneDay*7},
			  {label:twoWeek, data:oneDay*7*2},
			  {label:threeWeek, data:oneDay*7*3},
			  {label:fourWeek, data:oneDay*7*4},
			  {label:oneMonth, data:1},
			  {label:twoMonth, data:2},
			  {label:threeMonth, data:3},
			  {label:fourMonth, data:4},
			  {label:fiveMonth, data:5},
			  {label:sixMonth, data:6}
			]);

//Gender constants

public static const male:String = "Male";
public static const female:String = "Female";

public static const MALE_CHAR:String = "M";
public static const FEMALE_CHAR:String = "F";


//Food defaults
public static const FOOD_TYPE:String = "Food";

//height/weight constants
public static const average:Object = {height:60, data:1};//height in inches
public static const tall:Object = {height:70, data:2};
public static const WEIGHT_MAX:Number = 999.9;
public static const HEIGHT_MAX:Number = 99.9;
public static const BMI_UNDERWEIGHT:Number = 18.4;
public static const BMI_NORMAL:Number = 24.9;
public static const BMI_SLIGHTLY_OVERWEIGHT:Number = 25.9;
public static const BMI_OVERWEIGHT:Number = 29.9;
public static const BMI_OBESE:Number = 30;
public static const BMI_GROSSLY_OBESE:Number = 35;
public static const BMI_VALID_AGE:int = 20;
public static const GOAL_WEIGHT_TOO_LOW:String = "Your goal weight is too low according to your BMI.  The lowerest you should set your goal weight for is: ";
public static const GOAL_WEIGHT_HIGHER_THAN_WEIGHT:String = "Your goal weight is set higher than your current weight, please lower your goal weight or leave it empty to indicate you want are doing maintenance";

//age constants
public static const young:Object = {age:26, data:4};
public static const old:Object = {age:37, data:3};
public static const older:Object = {age:47, data:2};
public static const oldest:Object = {age:58, data:1};


			
public static const QUICK_ADD:String = " Quick-added food";

//Restriction contants
public static const RESTRICT_EMAIL:String = "^<>#%^&*;";
public static const RESTRICT_GENERAL:String = "^<>\"\"\\$;";
public static const RESTRICT_NAME:String = "^<>\"\"\\$0-9%;";

//tooltip constants
public static const RESTRICT_EMAIL_TOOL_TIP:String = "This box cannot contain the following character \"<\" \">\" \"#\" \"%\" \"^\" \"&\" \"*\" \";\" or quotations";
public static const RESTRICT_GENERAL_TOOL_TIP:String = "This box cannot contain the following character \"<\" \">\" \"\\\" \"$\" \";\" or quotations";
public static const RESTRICT_NAME_TOOL_TIP:String = "This box cannot contain the following character \"<\" \">\" \"\\\" \"%\" \";\" numbers or quotations";
public static const GOAL_DATE_COMBOBOX_TOOL_TIP:String = "Use this combobox if you'd like to set your goal date to a predefined date in the future.  Or if you have a specific date in mind you can set the date by clicking on the date field";
public static const GOAL_DATE_TOOL_TIP:String = "Set this date to the day when you want to reach your goal weight.  You can unselect date by holding the ctrl button while selecting the current day."
public static const GOAL_WEIGHT_TOOL_TIP:String = "Set the weight you'd like to be by your goal date below.  Leaving this or the goal date unselected will indicate that you are trying to maintain your current weight rather than losing weight";
public static const PASSCODE_TOOL_TIP:String = "Enter the passcode exactly as it is in your invitation email.  If your passcode isn't entered correctly your profile will not be saved.";  
public static const newFoodText:String = 
		"Your food has been created.  To add this food to your tracker set \n" + 
		"the serving size and meal time and then click 'Add to Tracker'. " + 
		"If you do not wish to add this food you can close the window.";
		
public static const EXCEED_MAX_HEIGHT_ERROR:String = "The number entered is too large. It must be between 24 and 99.9";		
public static const BELOW_MIN_HEIGHT_ERROR:String = "The number entered is too small. It must be between 24 and 99.9";
public static const EXCEED_MAX_WEIGHT_ERROR:String = "The number entered is too large. It must be between 90 and 999.9";
public static const BELOW_MIN_WEIGHT_ERROR:String = "The number entered is too small. It must be between 90 and 999.9";
public static const FIELDS_DO_NOT_MATCH:String =  "Fields do not match!  Confirmation box must match";		
public static const COMBOBOX_SELECTION_REQUIRED:String =  "You must select an option to continue";
public static const FOOD_NAME_HEADER:String = "Food name";
public static const DOB_NO_AGE_GIVEN:String = "You must enter in your birthdate before proceeding";
public static const DOB_TOO_YOUNG:String = "You need to at least be "+ MINIMUM_AGE + " years old to use this application";
public static const MINIMUM_AGE:int = 8;
public static const DUPLICATE_USERNAME:String = "This username already exists, please select a different username."

public static const HOST:String = "http://localhost/";		
//public static const HOST:String = "http://nortain.net/pointstracker/";
public static const SEARCH:String = "ResultsQuery.php";
public static const SAVE:String = "SaveFood.php"
public static const DATE:String = "DateQuery.php";
public static const HISTORY:String = "SaveHistory.php";
public static const FAVORITES:String = "FavoritesQuery.php";
public static const PROFILE:String = "ProfileQuery.php";
public static const FAVORITE_SAVE:String = "SaveFavorites.php";
public static const FAVORITE_DELETE:String = "DeleteFavorites.php";
public static const CREATE_PROFILE:String = "ProfileCreateQuery.php";
public static const LOGIN:String = "login.php";
public static const POINTS_UPDATE:String = "Query/Points/UpdatePointsQuery.php";

public static const NUM_OF_FOOD_PROPERTIES:int = 14;//this constant should always reflect the number of properties FavoriteFood.as
public static const NUM_OF_FOOD_HISTORY_COLUMNS:int = 7;//this constant should always describe the number of columns in the food history table
				

